DESKIE API
Macros
Get a list of macros
GET  |  https://[domain].deskie.io/api/macros.json
Get a list of macros from the administrator account. Shared and personal macros are displayed, divided into categories.
Response
{
    "common": {
        "0": {
            "title": "Uncategorized",
            "sort": 99999,
            "macros_category_id": 0,
            "data": {
                "196529": {
                    "title": "Accountant's help needed",
                    "position": 0,
                    "group_name": "General questions",
                    "actions": [
                        {
                            "macro_action_id": 866678,
                            "action_type": "add_note",
                            "action_display_name": "Add note",
                            "action_destination": "",
                            "content": "<notify rel="g81765">@Billing</notify> need some help with this case.",
                            "subject": "",
                            "position": 1
                        },
                        {
                            "macro_action_id": 866679,
                            "action_type": "group_id",
                            "action_display_name": "Set group",
                            "action_destination": "81765",
                            "content": "",
                            "subject": "",
                            "position": 2
                        }
                    ]
                },
                "196530": {
                    "title": "Planning a demo",
                    "position": 0,
                    "group_name": "",
                    "actions": [
                        {
                            "macro_action_id": 865057,
                            "action_type": "email_to_user",
                            "action_display_name": "Send response to user",
                            "action_destination": {
                                "1": "Hello!<br><br>We can schedule a demo on [day of the week] from 00:00 to 00:00. Let us know the time convenient for you and we will send you an invitation.",
                                "2": "Merhaba!<br><br>[Hafta günü] için 00:00 ile 00:00 arasında bir demo planlayabiliriz. Size uygun olan saati seçin ve bize bildirin, size bir davetiye gönderelim."
                            },
                            "content": null,
                            "subject": "",
                            "position": 1
                        }
                    ]
                }
            }
        }
    },
    "personal": [
        {
            "title": "Uncategorized",
            "sort": 99999,
            "macros_category_id": 0,
            "data": {
                "196528": {
                    "title": "Gratitude for flattering words + status Closed",
                    "position": 1,
                    "group_name": "General questions",
                    "actions": [
                        {
                            "macro_action_id": 866613,
                            "action_type": "email_to_user",
                            "action_display_name": "Send response to user",
                            "action_destination": {
                                "1": "Thank you so much for such kind words, I am really flattered :)<br><br>If you need any further assistance, feel free to contact us."
                            },
                            "content": "",
                            "subject": "",
                            "position": 1
                        },
                        {
                            "macro_action_id": 866614,
                            "action_type": "status",
                            "action_display_name": "Change status to",
                            "action_destination": "3",
                            "content": "",
                            "subject": "",
                            "position": 2
                        }
                    ]
                }
            }
        }
    ]
}
Sample code
curl -u [staff_email]:[api_key] -H "Content-Type: application/json" -X GET https://[domain].deskie.io/api/macros.json